/*
 * Copyright 2011 Fabian Wenzelmann
 * 
 * This file is part of Recognition-Procedures-for-Boolean-Functions.
 * 
 * Recognition-Procedures-for-Boolean-Functions is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Recognition-Procedures-for-Boolean-Functions is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Recognition-Procedures-for-Boolean-Functions.  If not, see <http://www.gnu.org/licenses/>.
 */

package de.wenzelmf.booleanFunction.lpb.combinatorial.occurrencePattern;

import java.util.SortedMap;
import java.util.TreeMap;

/**
 * An Implementation of SortedMapOccurrencePattern that uses a TreeMap.
 * 
 * @author Fabian Wenzelmann
 * @version 1.0
 *
 */
public class TreeMapPattern extends SortedMapOccurrencePattern
{

	private static final long serialVersionUID = 1047508260318860435L;
	
	/**
	 * Construct a new TreeMapPattern.
	 * 
	 * @param variable The name of the variable the occurrence pattern is created for (identifier of the variable).
	 */
	public TreeMapPattern(String variable)
	{
		super(variable);
	}

	/**
	 * Construct a new TreeMapPattern given an initial size.
	 * 
	 * @param variable The name of the variable the occurrence pattern is created for (identifier of the variable).
	 * @param size The initial size of the map (slots).
	 */
	public TreeMapPattern(String variable, int size)
	{
		super(variable, size);
	}

	@Override
	protected SortedMap<Integer, OccurrencePatternEntry> getEmptyMap()
	{
		return new TreeMap<Integer, OccurrencePatternEntry>();
	}
}
